using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Runtime.InteropServices;

namespace System.IPod.Music
{
	[StructLayout(LayoutKind.Sequential, Pack = 1)]
	unsafe struct MhHeader
	{
		public fixed byte Identifier[4];
		public int Length;

		public void Read(BinaryReader reader)
		{
			byte[] data = reader.ReadBytes(sizeof(MhHeader));
			fixed (byte* pData = data)
			{
				this = *(MhHeader*)pData;
			}
		}
	}
}
